package info.batcloud.fanli.background.task.controller;

import org.springframework.scheduling.config.ContextLifecycleScheduledTaskRegistrar;
import org.springframework.scheduling.config.CronTask;
import org.springframework.scheduling.config.ScheduledTask;
import org.springframework.scheduling.config.TriggerTask;

import javax.inject.Inject;

public class SchedulerController {

    @Inject
    private ContextLifecycleScheduledTaskRegistrar contextLifecycleScheduledTaskRegistrar;

    public Object save() {
//        TriggerTask triggerTask;
//        ScheduledTask task;
//        task.cancel();
//        contextLifecycleScheduledTaskRegistrar.scheduleCronTask()
        return "";
    }
}
